package com.jwaoo.chat.activity.module.db;

import android.content.Context;

import com.dx.as.db.IDBListener;
import com.dx.as.db.SqlLiteHelper;
import com.jwaoo.chat.data.db.ChatDatabase;

/**
 * Created by jwaoo on 2017/8/2.
 */

public class DbService {
    public static void getUserInfo(Context context, IDBListener idbListener){
        SqlLiteHelper.getInstance(context).dbOption(ChatDatabase.class,idbListener,true);
    }

    public static void saveUserInfo(Context context, IDBListener idbListener){
        SqlLiteHelper.getInstance(context).dbOption(ChatDatabase.class,idbListener,true);
    }

    public static void getSendFailedMessages(Context context, IDBListener idbListener){
        SqlLiteHelper.getInstance(context).dbOption(ChatDatabase.class,idbListener,true);
    }
}
